package com.lh.pattern.chainresponsiblity;

/**
 ************************************************
 ** Module : 抽象请求类
 ** Date: 2012-8-15  Time: 上午10:42:23 
 ** Author lh 
 ************************************************ 
 */
public abstract class AbstractRequest {  
    private AbstractRequest abstractRequest;  
    public void SetAbstractRequest(AbstractRequest ar){  
        this.setChainRequest(ar);  
    }  
    public abstract void HandleRequest(int request);  
    /**  
     * 设置下一个请求的对象  
     * @param abstractRequest  
     */  
    public void setChainRequest(AbstractRequest abstractRequest) {  
        this.abstractRequest = abstractRequest;  
    }  
    public AbstractRequest getAbstractRequest() {  
        return abstractRequest;  
    }  
  
}  